AbstractLogger

abstract class AbstractLogger(var level: ILogger.Level) : ILogger

Abstract logger for the library

Parameters

level

minimum level to write to destination

Inheritors

Constructors

Link copied to clipboard
constructor(level: ILogger.Level)

Properties

Link copied to clipboard
open override var level: ILogger.Level

Functions

Link copied to clipboard
fun d(tag: String, message: String, throwable: Throwable? = null)

Send a Level.DEBUG log message and log the exception.

Link copied to clipboard
fun e(tag: String, message: String, throwable: Throwable? = null)

Send a Level.ERROR log message and log the exception.

Link copied to clipboard
fun i(tag: String, message: String, throwable: Throwable? = null)

Send a Level.INFO log message and log the exception.

Link copied to clipboard
@VisibleForTesting(otherwise = 4)
open fun isLoggable(level: ILogger.Level): Boolean
Link copied to clipboard
abstract fun log(level: ILogger.Level, tag: String, message: String, throwable: Throwable? = null)

Write a log message to its destination.

Link copied to clipboard
fun v(tag: String, message: String, throwable: Throwable? = null)

Send a Level.VERBOSE log message and log the exception.

Link copied to clipboard
fun w(tag: String, message: String, throwable: Throwable? = null)

Send a Level.WARNING log message and log the exception.